<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:useBean id="selmessage_result1" scope="session" class="software.Mes_function"/>
<%@ page import="java.sql.*" %>  
<%@ page import="java.util.Date;"%>  
<HTML>  
<HEAD>  
<TITLE>message </TITLE>  
</HEAD>  
<BODY>  
<%
request.setCharacterEncoding("UTF-8");
String content1 = request.getParameter("content");
int ID_Use_post = Integer.parseInt(request.getParameter("ID_Use_Post1"));
int  ID_Mes_rel=Integer.parseInt(request.getParameter("ID_Mes_Rel1"));
int  ID_Use_get=Integer.parseInt(request.getParameter("ID_Use_Get1")); 
java.util.Date date=new java.util.Date();  
String datetime=new Timestamp(date.getTime()).toString(); 
selmessage_result1.setTim_Message(datetime);
selmessage_result1.setCon_Message(content1);
selmessage_result1.setId_Use_Post(ID_Use_post);
selmessage_result1.setId_Use_Get(ID_Use_get);
selmessage_result1.setId_Use_Rel(ID_Mes_rel);
selmessage_result1.Mes_insert();
out.print("<script>alert('回复成功！');</script>");
%> 
  <script type="text/javascript">
        window.location.href="selhome_message.jsp";    
   </script>
</body>  
</html>  